import Vue from 'vue'
import App from './App'
import VueI18n from 'vue-i18n'
import messages from './locale/index'
let i18nConfig = {
	locale: uni.getLocale(),
	messages
}
Vue.use(VueI18n)
const i18n = new VueI18n(i18nConfig)

import '@/filters'
import cuCustom from './colorui/components/cu-custom.vue'
import hello from '@/components/hello.vue'
import detailvideo from '@/components/detailvideo.vue'
Vue.component('cu-custom', cuCustom)
Vue.component('hello', hello)
Vue.component('detailvideo', detailvideo)
import uView from "uview-ui";
Vue.use(uView);
import helper from './utils/helper'
import share from '@/mixin/mpShare.js'
Vue.mixin(share)
Vue.config.productionTip = false
Vue.prototype.helper = helper
Vue.prototype.$onLaunched = new Promise(resolve => {
	Vue.prototype.$isResolve = resolve
})
App.mpType = 'app'
const app = new Vue({
	i18n,
	...App
})
app.$mount()